using System;
using System.Data;
using System.Windows.Forms;
using C1.Win.C1TrueDBGrid;
using PCSComUtils.PCSExc;
using PCSComUtils.Common.BO;
using PCSComUtils.Common.DS;
using PCSUtils.Log;
using PCSUtils.Utils;
using PCSComUtils.Common;



namespace PCSUtils.MasterSetup.SystemTable
{
	/// <summary>
	/// Summary description for UpdatePeriod.
	/// </summary>
	public class ManagePeriod : System.Windows.Forms.Form
	{
		#region My variable
		const string THIS = "PCSUtils.MasterSetup.SystemTable.ManagePeriod";
		private const string DATETIME_FOMART = "dd-MM-yyyy";
		private EnumAction enumAction = EnumAction.Default;
		
		#endregion My variable

		private System.Windows.Forms.Button btnSave;
		private System.Windows.Forms.Button btnClose;
		private System.Windows.Forms.Button btnHelp;
		private C1.Win.C1TrueDBGrid.C1TrueDBGrid gridPeriod;
		DataTable dtbGridLayout;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.Button btnEdit;
		private System.Windows.Forms.Button btnAdd;
		private System.Windows.Forms.Button btnDelete;
		private System.Windows.Forms.Label lblStatus;
		private System.Windows.Forms.Label lblToDate;
		private C1.Win.C1Input.C1DateEdit dtmToDate;
		private System.Windows.Forms.CheckBox ckbStatus;
		private System.Windows.Forms.Label lblFromDate;
		private C1.Win.C1Input.C1DateEdit dtmFromDate;
		private System.Windows.Forms.Label lblEndDayOfMonth;
		private System.Windows.Forms.Label lblFirstDayOfMonth;
		Sys_PeriodVO voPeriod = new Sys_PeriodVO();
		DataSet dstPeriod = new DataSet();

		bool blnSaveOK = true;

		public ManagePeriod()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ManagePeriod));
			this.gridPeriod = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.btnEdit = new System.Windows.Forms.Button();
			this.btnAdd = new System.Windows.Forms.Button();
			this.btnDelete = new System.Windows.Forms.Button();
			this.lblStatus = new System.Windows.Forms.Label();
			this.lblToDate = new System.Windows.Forms.Label();
			this.dtmToDate = new C1.Win.C1Input.C1DateEdit();
			this.ckbStatus = new System.Windows.Forms.CheckBox();
			this.lblFromDate = new System.Windows.Forms.Label();
			this.dtmFromDate = new C1.Win.C1Input.C1DateEdit();
			this.lblEndDayOfMonth = new System.Windows.Forms.Label();
			this.lblFirstDayOfMonth = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.gridPeriod)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDate)).BeginInit();
			this.SuspendLayout();
			// 
			// gridPeriod
			// 
			this.gridPeriod.AccessibleDescription = resources.GetString("gridPeriod.AccessibleDescription");
			this.gridPeriod.AccessibleName = resources.GetString("gridPeriod.AccessibleName");
			this.gridPeriod.AllowAddNew = ((bool)(resources.GetObject("gridPeriod.AllowAddNew")));
			this.gridPeriod.AllowArrows = ((bool)(resources.GetObject("gridPeriod.AllowArrows")));
			this.gridPeriod.AllowColMove = ((bool)(resources.GetObject("gridPeriod.AllowColMove")));
			this.gridPeriod.AllowColSelect = ((bool)(resources.GetObject("gridPeriod.AllowColSelect")));
			this.gridPeriod.AllowDelete = ((bool)(resources.GetObject("gridPeriod.AllowDelete")));
			this.gridPeriod.AllowDrag = ((bool)(resources.GetObject("gridPeriod.AllowDrag")));
			this.gridPeriod.AllowFilter = ((bool)(resources.GetObject("gridPeriod.AllowFilter")));
			this.gridPeriod.AllowHorizontalSplit = ((bool)(resources.GetObject("gridPeriod.AllowHorizontalSplit")));
			this.gridPeriod.AllowRowSelect = ((bool)(resources.GetObject("gridPeriod.AllowRowSelect")));
			this.gridPeriod.AllowSort = ((bool)(resources.GetObject("gridPeriod.AllowSort")));
			this.gridPeriod.AllowUpdate = ((bool)(resources.GetObject("gridPeriod.AllowUpdate")));
			this.gridPeriod.AllowUpdateOnBlur = ((bool)(resources.GetObject("gridPeriod.AllowUpdateOnBlur")));
			this.gridPeriod.AllowVerticalSplit = ((bool)(resources.GetObject("gridPeriod.AllowVerticalSplit")));
			this.gridPeriod.AlternatingRows = ((bool)(resources.GetObject("gridPeriod.AlternatingRows")));
			this.gridPeriod.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("gridPeriod.Anchor")));
			this.gridPeriod.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gridPeriod.BackgroundImage")));
			this.gridPeriod.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("gridPeriod.BorderStyle")));
			this.gridPeriod.Caption = resources.GetString("gridPeriod.Caption");
			this.gridPeriod.CaptionHeight = ((int)(resources.GetObject("gridPeriod.CaptionHeight")));
			this.gridPeriod.CellTipsDelay = ((int)(resources.GetObject("gridPeriod.CellTipsDelay")));
			this.gridPeriod.CellTipsWidth = ((int)(resources.GetObject("gridPeriod.CellTipsWidth")));
			this.gridPeriod.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("gridPeriod.ChildGrid")));
			this.gridPeriod.CollapseColor = ((System.Drawing.Color)(resources.GetObject("gridPeriod.CollapseColor")));
			this.gridPeriod.ColumnFooters = ((bool)(resources.GetObject("gridPeriod.ColumnFooters")));
			this.gridPeriod.ColumnHeaders = ((bool)(resources.GetObject("gridPeriod.ColumnHeaders")));
			this.gridPeriod.DefColWidth = ((int)(resources.GetObject("gridPeriod.DefColWidth")));
			this.gridPeriod.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("gridPeriod.Dock")));
			this.gridPeriod.EditDropDown = ((bool)(resources.GetObject("gridPeriod.EditDropDown")));
			this.gridPeriod.EmptyRows = ((bool)(resources.GetObject("gridPeriod.EmptyRows")));
			this.gridPeriod.Enabled = ((bool)(resources.GetObject("gridPeriod.Enabled")));
			this.gridPeriod.ExpandColor = ((System.Drawing.Color)(resources.GetObject("gridPeriod.ExpandColor")));
			this.gridPeriod.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("gridPeriod.ExposeCellMode")));
			this.gridPeriod.ExtendRightColumn = ((bool)(resources.GetObject("gridPeriod.ExtendRightColumn")));
			this.gridPeriod.FetchRowStyles = ((bool)(resources.GetObject("gridPeriod.FetchRowStyles")));
			this.gridPeriod.FilterBar = ((bool)(resources.GetObject("gridPeriod.FilterBar")));
			this.gridPeriod.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("gridPeriod.FlatStyle")));
			this.gridPeriod.Font = ((System.Drawing.Font)(resources.GetObject("gridPeriod.Font")));
			this.gridPeriod.GroupByAreaVisible = ((bool)(resources.GetObject("gridPeriod.GroupByAreaVisible")));
			this.gridPeriod.GroupByCaption = resources.GetString("gridPeriod.GroupByCaption");
			this.gridPeriod.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.gridPeriod.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("gridPeriod.ImeMode")));
			this.gridPeriod.LinesPerRow = ((int)(resources.GetObject("gridPeriod.LinesPerRow")));
			this.gridPeriod.Location = ((System.Drawing.Point)(resources.GetObject("gridPeriod.Location")));
			this.gridPeriod.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.gridPeriod.Name = "gridPeriod";
			this.gridPeriod.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("gridPeriod.PictureAddnewRow")));
			this.gridPeriod.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("gridPeriod.PictureCurrentRow")));
			this.gridPeriod.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("gridPeriod.PictureFilterBar")));
			this.gridPeriod.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("gridPeriod.PictureFooterRow")));
			this.gridPeriod.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("gridPeriod.PictureHeaderRow")));
			this.gridPeriod.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("gridPeriod.PictureModifiedRow")));
			this.gridPeriod.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("gridPeriod.PictureStandardRow")));
			this.gridPeriod.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("gridPeriod.PreviewInfo.AllowSizing")));
			this.gridPeriod.PreviewInfo.Caption = resources.GetString("gridPeriod.PreviewInfo.Caption");
			this.gridPeriod.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("gridPeriod.PreviewInfo.Location")));
			this.gridPeriod.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("gridPeriod.PreviewInfo.Size")));
			this.gridPeriod.PreviewInfo.ToolBars = ((bool)(resources.GetObject("gridPeriod.PreviewInfo.ToolBars")));
			this.gridPeriod.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("gridPeriod.PreviewInfo.UIStrings.Content")));
			this.gridPeriod.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("gridPeriod.PreviewInfo.ZoomFactor")));
			this.gridPeriod.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("gridPeriod.PrintInfo.MaxRowHeight")));
			this.gridPeriod.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("gridPeriod.PrintInfo.OwnerDrawPageFooter")));
			this.gridPeriod.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("gridPeriod.PrintInfo.OwnerDrawPageHeader")));
			this.gridPeriod.PrintInfo.PageFooter = resources.GetString("gridPeriod.PrintInfo.PageFooter");
			this.gridPeriod.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("gridPeriod.PrintInfo.PageFooterHeight")));
			this.gridPeriod.PrintInfo.PageHeader = resources.GetString("gridPeriod.PrintInfo.PageHeader");
			this.gridPeriod.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("gridPeriod.PrintInfo.PageHeaderHeight")));
			this.gridPeriod.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("gridPeriod.PrintInfo.PrintHorizontalSplits")));
			this.gridPeriod.PrintInfo.ProgressCaption = resources.GetString("gridPeriod.PrintInfo.ProgressCaption");
			this.gridPeriod.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("gridPeriod.PrintInfo.RepeatColumnFooters")));
			this.gridPeriod.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("gridPeriod.PrintInfo.RepeatColumnHeaders")));
			this.gridPeriod.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("gridPeriod.PrintInfo.RepeatGridHeader")));
			this.gridPeriod.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("gridPeriod.PrintInfo.RepeatSplitHeaders")));
			this.gridPeriod.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("gridPeriod.PrintInfo.ShowOptionsDialog")));
			this.gridPeriod.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("gridPeriod.PrintInfo.ShowProgressForm")));
			this.gridPeriod.PrintInfo.ShowSelection = ((bool)(resources.GetObject("gridPeriod.PrintInfo.ShowSelection")));
			this.gridPeriod.PrintInfo.UseGridColors = ((bool)(resources.GetObject("gridPeriod.PrintInfo.UseGridColors")));
			this.gridPeriod.RecordSelectors = ((bool)(resources.GetObject("gridPeriod.RecordSelectors")));
			this.gridPeriod.RecordSelectorWidth = ((int)(resources.GetObject("gridPeriod.RecordSelectorWidth")));
			this.gridPeriod.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("gridPeriod.RightToLeft")));
			this.gridPeriod.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.gridPeriod.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.gridPeriod.RowHeight = ((int)(resources.GetObject("gridPeriod.RowHeight")));
			this.gridPeriod.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("gridPeriod.RowSubDividerColor")));
			this.gridPeriod.ScrollTips = ((bool)(resources.GetObject("gridPeriod.ScrollTips")));
			this.gridPeriod.ScrollTrack = ((bool)(resources.GetObject("gridPeriod.ScrollTrack")));
			this.gridPeriod.Size = ((System.Drawing.Size)(resources.GetObject("gridPeriod.Size")));
			this.gridPeriod.SpringMode = ((bool)(resources.GetObject("gridPeriod.SpringMode")));
			this.gridPeriod.TabAcrossSplits = ((bool)(resources.GetObject("gridPeriod.TabAcrossSplits")));
			this.gridPeriod.TabIndex = ((int)(resources.GetObject("gridPeriod.TabIndex")));
			this.gridPeriod.Text = resources.GetString("gridPeriod.Text");
			this.gridPeriod.ViewCaptionWidth = ((int)(resources.GetObject("gridPeriod.ViewCaptionWidth")));
			this.gridPeriod.ViewColumnWidth = ((int)(resources.GetObject("gridPeriod.ViewColumnWidth")));
			this.gridPeriod.Visible = ((bool)(resources.GetObject("gridPeriod.Visible")));
			this.gridPeriod.WrapCellPointer = ((bool)(resources.GetObject("gridPeriod.WrapCellPointer")));
			this.gridPeriod.PropBag = resources.GetString("gridPeriod.PropBag");
			// 
			// btnSave
			// 
			this.btnSave.AccessibleDescription = resources.GetString("btnSave.AccessibleDescription");
			this.btnSave.AccessibleName = resources.GetString("btnSave.AccessibleName");
			this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSave.Anchor")));
			this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
			this.btnSave.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSave.Dock")));
			this.btnSave.Enabled = ((bool)(resources.GetObject("btnSave.Enabled")));
			this.btnSave.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSave.FlatStyle")));
			this.btnSave.Font = ((System.Drawing.Font)(resources.GetObject("btnSave.Font")));
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.ImageAlign")));
			this.btnSave.ImageIndex = ((int)(resources.GetObject("btnSave.ImageIndex")));
			this.btnSave.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSave.ImeMode")));
			this.btnSave.Location = ((System.Drawing.Point)(resources.GetObject("btnSave.Location")));
			this.btnSave.Name = "btnSave";
			this.btnSave.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSave.RightToLeft")));
			this.btnSave.Size = ((System.Drawing.Size)(resources.GetObject("btnSave.Size")));
			this.btnSave.TabIndex = ((int)(resources.GetObject("btnSave.TabIndex")));
			this.btnSave.Text = resources.GetString("btnSave.Text");
			this.btnSave.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.TextAlign")));
			this.btnSave.Visible = ((bool)(resources.GetObject("btnSave.Visible")));
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			// 
			// btnEdit
			// 
			this.btnEdit.AccessibleDescription = resources.GetString("btnEdit.AccessibleDescription");
			this.btnEdit.AccessibleName = resources.GetString("btnEdit.AccessibleName");
			this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnEdit.Anchor")));
			this.btnEdit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEdit.BackgroundImage")));
			this.btnEdit.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnEdit.Dock")));
			this.btnEdit.Enabled = ((bool)(resources.GetObject("btnEdit.Enabled")));
			this.btnEdit.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnEdit.FlatStyle")));
			this.btnEdit.Font = ((System.Drawing.Font)(resources.GetObject("btnEdit.Font")));
			this.btnEdit.Image = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
			this.btnEdit.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.ImageAlign")));
			this.btnEdit.ImageIndex = ((int)(resources.GetObject("btnEdit.ImageIndex")));
			this.btnEdit.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnEdit.ImeMode")));
			this.btnEdit.Location = ((System.Drawing.Point)(resources.GetObject("btnEdit.Location")));
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnEdit.RightToLeft")));
			this.btnEdit.Size = ((System.Drawing.Size)(resources.GetObject("btnEdit.Size")));
			this.btnEdit.TabIndex = ((int)(resources.GetObject("btnEdit.TabIndex")));
			this.btnEdit.Text = resources.GetString("btnEdit.Text");
			this.btnEdit.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.TextAlign")));
			this.btnEdit.Visible = ((bool)(resources.GetObject("btnEdit.Visible")));
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// btnAdd
			// 
			this.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription");
			this.btnAdd.AccessibleName = resources.GetString("btnAdd.AccessibleName");
			this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnAdd.Anchor")));
			this.btnAdd.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAdd.BackgroundImage")));
			this.btnAdd.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnAdd.Dock")));
			this.btnAdd.Enabled = ((bool)(resources.GetObject("btnAdd.Enabled")));
			this.btnAdd.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnAdd.FlatStyle")));
			this.btnAdd.Font = ((System.Drawing.Font)(resources.GetObject("btnAdd.Font")));
			this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
			this.btnAdd.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.ImageAlign")));
			this.btnAdd.ImageIndex = ((int)(resources.GetObject("btnAdd.ImageIndex")));
			this.btnAdd.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnAdd.ImeMode")));
			this.btnAdd.Location = ((System.Drawing.Point)(resources.GetObject("btnAdd.Location")));
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnAdd.RightToLeft")));
			this.btnAdd.Size = ((System.Drawing.Size)(resources.GetObject("btnAdd.Size")));
			this.btnAdd.TabIndex = ((int)(resources.GetObject("btnAdd.TabIndex")));
			this.btnAdd.Text = resources.GetString("btnAdd.Text");
			this.btnAdd.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.TextAlign")));
			this.btnAdd.Visible = ((bool)(resources.GetObject("btnAdd.Visible")));
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// btnDelete
			// 
			this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
			this.btnDelete.AccessibleName = resources.GetString("btnDelete.AccessibleName");
			this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
			this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
			this.btnDelete.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
			this.btnDelete.Enabled = ((bool)(resources.GetObject("btnDelete.Enabled")));
			this.btnDelete.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
			this.btnDelete.Font = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
			this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
			this.btnDelete.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
			this.btnDelete.ImageIndex = ((int)(resources.GetObject("btnDelete.ImageIndex")));
			this.btnDelete.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
			this.btnDelete.Location = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
			this.btnDelete.Name = "btnDelete";
			this.btnDelete.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
			this.btnDelete.Size = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
			this.btnDelete.TabIndex = ((int)(resources.GetObject("btnDelete.TabIndex")));
			this.btnDelete.Text = resources.GetString("btnDelete.Text");
			this.btnDelete.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
			this.btnDelete.Visible = ((bool)(resources.GetObject("btnDelete.Visible")));
			this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
			// 
			// lblStatus
			// 
			this.lblStatus.AccessibleDescription = resources.GetString("lblStatus.AccessibleDescription");
			this.lblStatus.AccessibleName = resources.GetString("lblStatus.AccessibleName");
			this.lblStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblStatus.Anchor")));
			this.lblStatus.AutoSize = ((bool)(resources.GetObject("lblStatus.AutoSize")));
			this.lblStatus.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblStatus.Dock")));
			this.lblStatus.Enabled = ((bool)(resources.GetObject("lblStatus.Enabled")));
			this.lblStatus.Font = ((System.Drawing.Font)(resources.GetObject("lblStatus.Font")));
			this.lblStatus.ForeColor = System.Drawing.Color.Maroon;
			this.lblStatus.Image = ((System.Drawing.Image)(resources.GetObject("lblStatus.Image")));
			this.lblStatus.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblStatus.ImageAlign")));
			this.lblStatus.ImageIndex = ((int)(resources.GetObject("lblStatus.ImageIndex")));
			this.lblStatus.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblStatus.ImeMode")));
			this.lblStatus.Location = ((System.Drawing.Point)(resources.GetObject("lblStatus.Location")));
			this.lblStatus.Name = "lblStatus";
			this.lblStatus.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblStatus.RightToLeft")));
			this.lblStatus.Size = ((System.Drawing.Size)(resources.GetObject("lblStatus.Size")));
			this.lblStatus.TabIndex = ((int)(resources.GetObject("lblStatus.TabIndex")));
			this.lblStatus.Text = resources.GetString("lblStatus.Text");
			this.lblStatus.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblStatus.TextAlign")));
			this.lblStatus.Visible = ((bool)(resources.GetObject("lblStatus.Visible")));
			// 
			// lblToDate
			// 
			this.lblToDate.AccessibleDescription = resources.GetString("lblToDate.AccessibleDescription");
			this.lblToDate.AccessibleName = resources.GetString("lblToDate.AccessibleName");
			this.lblToDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblToDate.Anchor")));
			this.lblToDate.AutoSize = ((bool)(resources.GetObject("lblToDate.AutoSize")));
			this.lblToDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblToDate.Dock")));
			this.lblToDate.Enabled = ((bool)(resources.GetObject("lblToDate.Enabled")));
			this.lblToDate.Font = ((System.Drawing.Font)(resources.GetObject("lblToDate.Font")));
			this.lblToDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblToDate.Image = ((System.Drawing.Image)(resources.GetObject("lblToDate.Image")));
			this.lblToDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDate.ImageAlign")));
			this.lblToDate.ImageIndex = ((int)(resources.GetObject("lblToDate.ImageIndex")));
			this.lblToDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblToDate.ImeMode")));
			this.lblToDate.Location = ((System.Drawing.Point)(resources.GetObject("lblToDate.Location")));
			this.lblToDate.Name = "lblToDate";
			this.lblToDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblToDate.RightToLeft")));
			this.lblToDate.Size = ((System.Drawing.Size)(resources.GetObject("lblToDate.Size")));
			this.lblToDate.TabIndex = ((int)(resources.GetObject("lblToDate.TabIndex")));
			this.lblToDate.Text = resources.GetString("lblToDate.Text");
			this.lblToDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDate.TextAlign")));
			this.lblToDate.Visible = ((bool)(resources.GetObject("lblToDate.Visible")));
			// 
			// dtmToDate
			// 
			this.dtmToDate.AcceptsEscape = ((bool)(resources.GetObject("dtmToDate.AcceptsEscape")));
			this.dtmToDate.AccessibleDescription = resources.GetString("dtmToDate.AccessibleDescription");
			this.dtmToDate.AccessibleName = resources.GetString("dtmToDate.AccessibleName");
			this.dtmToDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmToDate.Anchor")));
			this.dtmToDate.AutoSize = ((bool)(resources.GetObject("dtmToDate.AutoSize")));
			this.dtmToDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDate.BackgroundImage")));
			this.dtmToDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmToDate.BorderStyle")));
			// 
			// dtmToDate.Calendar
			// 
			this.dtmToDate.Calendar.AccessibleDescription = resources.GetString("dtmToDate.Calendar.AccessibleDescription");
			this.dtmToDate.Calendar.AccessibleName = resources.GetString("dtmToDate.Calendar.AccessibleName");
			this.dtmToDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.AnnuallyBoldedDates")));
			this.dtmToDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDate.Calendar.BackgroundImage")));
			this.dtmToDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.BoldedDates")));
			this.dtmToDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmToDate.Calendar.CalendarDimensions")));
			this.dtmToDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmToDate.Calendar.Enabled")));
			this.dtmToDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmToDate.Calendar.FirstDayOfWeek")));
			this.dtmToDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDate.Calendar.Font")));
			this.dtmToDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDate.Calendar.ImeMode")));
			this.dtmToDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.MonthlyBoldedDates")));
			this.dtmToDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDate.Calendar.RightToLeft")));
			this.dtmToDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowClearButton")));
			this.dtmToDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowTodayButton")));
			this.dtmToDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowWeekNumbers")));
			this.dtmToDate.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.CaseSensitive")));
			this.dtmToDate.Culture = ((int)(resources.GetObject("dtmToDate.Culture")));
			this.dtmToDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmToDate.CurrentTimeZone")));
			this.dtmToDate.CustomFormat = resources.GetString("dtmToDate.CustomFormat");
			this.dtmToDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmToDate.DaylightTimeAdjustment")));
			this.dtmToDate.DisplayFormat.CustomFormat = resources.GetString("dtmToDate.DisplayFormat.CustomFormat");
			this.dtmToDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.DisplayFormat.FormatType")));
			this.dtmToDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDate.DisplayFormat.Inherit")));
			this.dtmToDate.DisplayFormat.NullText = resources.GetString("dtmToDate.DisplayFormat.NullText");
			this.dtmToDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDate.DisplayFormat.TrimEnd")));
			this.dtmToDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmToDate.DisplayFormat.TrimStart")));
			this.dtmToDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmToDate.Dock")));
			this.dtmToDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmToDate.DropDownFormAlign")));
			this.dtmToDate.EditFormat.CustomFormat = resources.GetString("dtmToDate.EditFormat.CustomFormat");
			this.dtmToDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.EditFormat.FormatType")));
			this.dtmToDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDate.EditFormat.Inherit")));
			this.dtmToDate.EditFormat.NullText = resources.GetString("dtmToDate.EditFormat.NullText");
			this.dtmToDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDate.EditFormat.TrimEnd")));
			this.dtmToDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmToDate.EditFormat.TrimStart")));
			this.dtmToDate.EditMask = resources.GetString("dtmToDate.EditMask");
			this.dtmToDate.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.EmptyAsNull")));
			this.dtmToDate.Enabled = ((bool)(resources.GetObject("dtmToDate.Enabled")));
			this.dtmToDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmToDate.ErrorInfo.BeepOnError")));
			this.dtmToDate.ErrorInfo.ErrorMessage = resources.GetString("dtmToDate.ErrorInfo.ErrorMessage");
			this.dtmToDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmToDate.ErrorInfo.ErrorMessageCaption");
			this.dtmToDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmToDate.ErrorInfo.ShowErrorMessage")));
			this.dtmToDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmToDate.ErrorInfo.ValueOnError")));
			this.dtmToDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDate.Font")));
			this.dtmToDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.FormatType")));
			this.dtmToDate.GapHeight = ((int)(resources.GetObject("dtmToDate.GapHeight")));
			this.dtmToDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmToDate.GMTOffset")));
			this.dtmToDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDate.ImeMode")));
			this.dtmToDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmToDate.InitialSelection")));
			this.dtmToDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmToDate.Location")));
			this.dtmToDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmToDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmToDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.MaskInfo.CaseSensitive")));
			this.dtmToDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmToDate.MaskInfo.CopyWithLiterals")));
			this.dtmToDate.MaskInfo.EditMask = resources.GetString("dtmToDate.MaskInfo.EditMask");
			this.dtmToDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.MaskInfo.EmptyAsNull")));
			this.dtmToDate.MaskInfo.ErrorMessage = resources.GetString("dtmToDate.MaskInfo.ErrorMessage");
			this.dtmToDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmToDate.MaskInfo.Inherit")));
			this.dtmToDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmToDate.MaskInfo.PromptChar")));
			this.dtmToDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmToDate.MaskInfo.ShowLiterals")));
			this.dtmToDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmToDate.MaskInfo.StoredEmptyChar")));
			this.dtmToDate.MaxLength = ((int)(resources.GetObject("dtmToDate.MaxLength")));
			this.dtmToDate.Name = "dtmToDate";
			this.dtmToDate.NullText = resources.GetString("dtmToDate.NullText");
			this.dtmToDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.ParseInfo.CaseSensitive")));
			this.dtmToDate.ParseInfo.CustomFormat = resources.GetString("dtmToDate.ParseInfo.CustomFormat");
			this.dtmToDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmToDate.ParseInfo.DateTimeStyle")));
			this.dtmToDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.ParseInfo.EmptyAsNull")));
			this.dtmToDate.ParseInfo.ErrorMessage = resources.GetString("dtmToDate.ParseInfo.ErrorMessage");
			this.dtmToDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.ParseInfo.FormatType")));
			this.dtmToDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmToDate.ParseInfo.Inherit")));
			this.dtmToDate.ParseInfo.NullText = resources.GetString("dtmToDate.ParseInfo.NullText");
			this.dtmToDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmToDate.ParseInfo.TrimEnd")));
			this.dtmToDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmToDate.ParseInfo.TrimStart")));
			this.dtmToDate.PasswordChar = ((char)(resources.GetObject("dtmToDate.PasswordChar")));
			this.dtmToDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.PostValidation.CaseSensitive")));
			this.dtmToDate.PostValidation.ErrorMessage = resources.GetString("dtmToDate.PostValidation.ErrorMessage");
			this.dtmToDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmToDate.PostValidation.Inherit")));
			this.dtmToDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmToDate.PostValidation.Validation")));
			this.dtmToDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmToDate.PostValidation.Values")));
			this.dtmToDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmToDate.PostValidation.ValuesExcluded")));
			this.dtmToDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.PreValidation.CaseSensitive")));
			this.dtmToDate.PreValidation.ErrorMessage = resources.GetString("dtmToDate.PreValidation.ErrorMessage");
			this.dtmToDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmToDate.PreValidation.Inherit")));
			this.dtmToDate.PreValidation.ItemSeparator = resources.GetString("dtmToDate.PreValidation.ItemSeparator");
			this.dtmToDate.PreValidation.PatternString = resources.GetString("dtmToDate.PreValidation.PatternString");
			this.dtmToDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmToDate.PreValidation.RegexOptions")));
			this.dtmToDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmToDate.PreValidation.TrimEnd")));
			this.dtmToDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmToDate.PreValidation.TrimStart")));
			this.dtmToDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmToDate.PreValidation.Validation")));
			this.dtmToDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDate.RightToLeft")));
			this.dtmToDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmToDate.ShowFocusRectangle")));
			this.dtmToDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmToDate.Size")));
			this.dtmToDate.TabIndex = ((int)(resources.GetObject("dtmToDate.TabIndex")));
			this.dtmToDate.Tag = ((object)(resources.GetObject("dtmToDate.Tag")));
			this.dtmToDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmToDate.TextAlign")));
			this.dtmToDate.TrimEnd = ((bool)(resources.GetObject("dtmToDate.TrimEnd")));
			this.dtmToDate.TrimStart = ((bool)(resources.GetObject("dtmToDate.TrimStart")));
			this.dtmToDate.UserCultureOverride = ((bool)(resources.GetObject("dtmToDate.UserCultureOverride")));
			this.dtmToDate.Value = ((object)(resources.GetObject("dtmToDate.Value")));
			this.dtmToDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmToDate.VerticalAlign")));
			this.dtmToDate.Visible = ((bool)(resources.GetObject("dtmToDate.Visible")));
			this.dtmToDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmToDate.VisibleButtons")));
			this.dtmToDate.Enter += new System.EventHandler(this.OnEnterControl);
			this.dtmToDate.Leave += new System.EventHandler(this.OnLeaveControl);
			// 
			// ckbStatus
			// 
			this.ckbStatus.AccessibleDescription = resources.GetString("ckbStatus.AccessibleDescription");
			this.ckbStatus.AccessibleName = resources.GetString("ckbStatus.AccessibleName");
			this.ckbStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("ckbStatus.Anchor")));
			this.ckbStatus.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("ckbStatus.Appearance")));
			this.ckbStatus.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ckbStatus.BackgroundImage")));
			this.ckbStatus.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("ckbStatus.CheckAlign")));
			this.ckbStatus.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("ckbStatus.Dock")));
			this.ckbStatus.Enabled = ((bool)(resources.GetObject("ckbStatus.Enabled")));
			this.ckbStatus.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("ckbStatus.FlatStyle")));
			this.ckbStatus.Font = ((System.Drawing.Font)(resources.GetObject("ckbStatus.Font")));
			this.ckbStatus.Image = ((System.Drawing.Image)(resources.GetObject("ckbStatus.Image")));
			this.ckbStatus.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("ckbStatus.ImageAlign")));
			this.ckbStatus.ImageIndex = ((int)(resources.GetObject("ckbStatus.ImageIndex")));
			this.ckbStatus.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("ckbStatus.ImeMode")));
			this.ckbStatus.Location = ((System.Drawing.Point)(resources.GetObject("ckbStatus.Location")));
			this.ckbStatus.Name = "ckbStatus";
			this.ckbStatus.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("ckbStatus.RightToLeft")));
			this.ckbStatus.Size = ((System.Drawing.Size)(resources.GetObject("ckbStatus.Size")));
			this.ckbStatus.TabIndex = ((int)(resources.GetObject("ckbStatus.TabIndex")));
			this.ckbStatus.Text = resources.GetString("ckbStatus.Text");
			this.ckbStatus.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("ckbStatus.TextAlign")));
			this.ckbStatus.Visible = ((bool)(resources.GetObject("ckbStatus.Visible")));
			// 
			// lblFromDate
			// 
			this.lblFromDate.AccessibleDescription = resources.GetString("lblFromDate.AccessibleDescription");
			this.lblFromDate.AccessibleName = resources.GetString("lblFromDate.AccessibleName");
			this.lblFromDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFromDate.Anchor")));
			this.lblFromDate.AutoSize = ((bool)(resources.GetObject("lblFromDate.AutoSize")));
			this.lblFromDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFromDate.Dock")));
			this.lblFromDate.Enabled = ((bool)(resources.GetObject("lblFromDate.Enabled")));
			this.lblFromDate.Font = ((System.Drawing.Font)(resources.GetObject("lblFromDate.Font")));
			this.lblFromDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblFromDate.Image = ((System.Drawing.Image)(resources.GetObject("lblFromDate.Image")));
			this.lblFromDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDate.ImageAlign")));
			this.lblFromDate.ImageIndex = ((int)(resources.GetObject("lblFromDate.ImageIndex")));
			this.lblFromDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFromDate.ImeMode")));
			this.lblFromDate.Location = ((System.Drawing.Point)(resources.GetObject("lblFromDate.Location")));
			this.lblFromDate.Name = "lblFromDate";
			this.lblFromDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFromDate.RightToLeft")));
			this.lblFromDate.Size = ((System.Drawing.Size)(resources.GetObject("lblFromDate.Size")));
			this.lblFromDate.TabIndex = ((int)(resources.GetObject("lblFromDate.TabIndex")));
			this.lblFromDate.Text = resources.GetString("lblFromDate.Text");
			this.lblFromDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDate.TextAlign")));
			this.lblFromDate.Visible = ((bool)(resources.GetObject("lblFromDate.Visible")));
			// 
			// dtmFromDate
			// 
			this.dtmFromDate.AcceptsEscape = ((bool)(resources.GetObject("dtmFromDate.AcceptsEscape")));
			this.dtmFromDate.AccessibleDescription = resources.GetString("dtmFromDate.AccessibleDescription");
			this.dtmFromDate.AccessibleName = resources.GetString("dtmFromDate.AccessibleName");
			this.dtmFromDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmFromDate.Anchor")));
			this.dtmFromDate.AutoSize = ((bool)(resources.GetObject("dtmFromDate.AutoSize")));
			this.dtmFromDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDate.BackgroundImage")));
			this.dtmFromDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmFromDate.BorderStyle")));
			// 
			// dtmFromDate.Calendar
			// 
			this.dtmFromDate.Calendar.AccessibleDescription = resources.GetString("dtmFromDate.Calendar.AccessibleDescription");
			this.dtmFromDate.Calendar.AccessibleName = resources.GetString("dtmFromDate.Calendar.AccessibleName");
			this.dtmFromDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.AnnuallyBoldedDates")));
			this.dtmFromDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDate.Calendar.BackgroundImage")));
			this.dtmFromDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.BoldedDates")));
			this.dtmFromDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmFromDate.Calendar.CalendarDimensions")));
			this.dtmFromDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmFromDate.Calendar.Enabled")));
			this.dtmFromDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmFromDate.Calendar.FirstDayOfWeek")));
			this.dtmFromDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDate.Calendar.Font")));
			this.dtmFromDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDate.Calendar.ImeMode")));
			this.dtmFromDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.MonthlyBoldedDates")));
			this.dtmFromDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDate.Calendar.RightToLeft")));
			this.dtmFromDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowClearButton")));
			this.dtmFromDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowTodayButton")));
			this.dtmFromDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowWeekNumbers")));
			this.dtmFromDate.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.CaseSensitive")));
			this.dtmFromDate.Culture = ((int)(resources.GetObject("dtmFromDate.Culture")));
			this.dtmFromDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmFromDate.CurrentTimeZone")));
			this.dtmFromDate.CustomFormat = resources.GetString("dtmFromDate.CustomFormat");
			this.dtmFromDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmFromDate.DaylightTimeAdjustment")));
			this.dtmFromDate.DisplayFormat.CustomFormat = resources.GetString("dtmFromDate.DisplayFormat.CustomFormat");
			this.dtmFromDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.DisplayFormat.FormatType")));
			this.dtmFromDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDate.DisplayFormat.Inherit")));
			this.dtmFromDate.DisplayFormat.NullText = resources.GetString("dtmFromDate.DisplayFormat.NullText");
			this.dtmFromDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.DisplayFormat.TrimEnd")));
			this.dtmFromDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDate.DisplayFormat.TrimStart")));
			this.dtmFromDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmFromDate.Dock")));
			this.dtmFromDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmFromDate.DropDownFormAlign")));
			this.dtmFromDate.EditFormat.CustomFormat = resources.GetString("dtmFromDate.EditFormat.CustomFormat");
			this.dtmFromDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.EditFormat.FormatType")));
			this.dtmFromDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDate.EditFormat.Inherit")));
			this.dtmFromDate.EditFormat.NullText = resources.GetString("dtmFromDate.EditFormat.NullText");
			this.dtmFromDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.EditFormat.TrimEnd")));
			this.dtmFromDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDate.EditFormat.TrimStart")));
			this.dtmFromDate.EditMask = resources.GetString("dtmFromDate.EditMask");
			this.dtmFromDate.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.EmptyAsNull")));
			this.dtmFromDate.Enabled = ((bool)(resources.GetObject("dtmFromDate.Enabled")));
			this.dtmFromDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmFromDate.ErrorInfo.BeepOnError")));
			this.dtmFromDate.ErrorInfo.ErrorMessage = resources.GetString("dtmFromDate.ErrorInfo.ErrorMessage");
			this.dtmFromDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmFromDate.ErrorInfo.ErrorMessageCaption");
			this.dtmFromDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmFromDate.ErrorInfo.ShowErrorMessage")));
			this.dtmFromDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmFromDate.ErrorInfo.ValueOnError")));
			this.dtmFromDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDate.Font")));
			this.dtmFromDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.FormatType")));
			this.dtmFromDate.GapHeight = ((int)(resources.GetObject("dtmFromDate.GapHeight")));
			this.dtmFromDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmFromDate.GMTOffset")));
			this.dtmFromDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDate.ImeMode")));
			this.dtmFromDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmFromDate.InitialSelection")));
			this.dtmFromDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmFromDate.Location")));
			this.dtmFromDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmFromDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.CaseSensitive")));
			this.dtmFromDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.CopyWithLiterals")));
			this.dtmFromDate.MaskInfo.EditMask = resources.GetString("dtmFromDate.MaskInfo.EditMask");
			this.dtmFromDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.EmptyAsNull")));
			this.dtmFromDate.MaskInfo.ErrorMessage = resources.GetString("dtmFromDate.MaskInfo.ErrorMessage");
			this.dtmFromDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmFromDate.MaskInfo.Inherit")));
			this.dtmFromDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmFromDate.MaskInfo.PromptChar")));
			this.dtmFromDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmFromDate.MaskInfo.ShowLiterals")));
			this.dtmFromDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmFromDate.MaskInfo.StoredEmptyChar")));
			this.dtmFromDate.MaxLength = ((int)(resources.GetObject("dtmFromDate.MaxLength")));
			this.dtmFromDate.Name = "dtmFromDate";
			this.dtmFromDate.NullText = resources.GetString("dtmFromDate.NullText");
			this.dtmFromDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.CaseSensitive")));
			this.dtmFromDate.ParseInfo.CustomFormat = resources.GetString("dtmFromDate.ParseInfo.CustomFormat");
			this.dtmFromDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmFromDate.ParseInfo.DateTimeStyle")));
			this.dtmFromDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.EmptyAsNull")));
			this.dtmFromDate.ParseInfo.ErrorMessage = resources.GetString("dtmFromDate.ParseInfo.ErrorMessage");
			this.dtmFromDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.ParseInfo.FormatType")));
			this.dtmFromDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmFromDate.ParseInfo.Inherit")));
			this.dtmFromDate.ParseInfo.NullText = resources.GetString("dtmFromDate.ParseInfo.NullText");
			this.dtmFromDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.TrimEnd")));
			this.dtmFromDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.TrimStart")));
			this.dtmFromDate.PasswordChar = ((char)(resources.GetObject("dtmFromDate.PasswordChar")));
			this.dtmFromDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.PostValidation.CaseSensitive")));
			this.dtmFromDate.PostValidation.ErrorMessage = resources.GetString("dtmFromDate.PostValidation.ErrorMessage");
			this.dtmFromDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmFromDate.PostValidation.Inherit")));
			this.dtmFromDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmFromDate.PostValidation.Validation")));
			this.dtmFromDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmFromDate.PostValidation.Values")));
			this.dtmFromDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmFromDate.PostValidation.ValuesExcluded")));
			this.dtmFromDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.PreValidation.CaseSensitive")));
			this.dtmFromDate.PreValidation.ErrorMessage = resources.GetString("dtmFromDate.PreValidation.ErrorMessage");
			this.dtmFromDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmFromDate.PreValidation.Inherit")));
			this.dtmFromDate.PreValidation.ItemSeparator = resources.GetString("dtmFromDate.PreValidation.ItemSeparator");
			this.dtmFromDate.PreValidation.PatternString = resources.GetString("dtmFromDate.PreValidation.PatternString");
			this.dtmFromDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmFromDate.PreValidation.RegexOptions")));
			this.dtmFromDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.PreValidation.TrimEnd")));
			this.dtmFromDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmFromDate.PreValidation.TrimStart")));
			this.dtmFromDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmFromDate.PreValidation.Validation")));
			this.dtmFromDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDate.RightToLeft")));
			this.dtmFromDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmFromDate.ShowFocusRectangle")));
			this.dtmFromDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmFromDate.Size")));
			this.dtmFromDate.TabIndex = ((int)(resources.GetObject("dtmFromDate.TabIndex")));
			this.dtmFromDate.Tag = ((object)(resources.GetObject("dtmFromDate.Tag")));
			this.dtmFromDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmFromDate.TextAlign")));
			this.dtmFromDate.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.TrimEnd")));
			this.dtmFromDate.TrimStart = ((bool)(resources.GetObject("dtmFromDate.TrimStart")));
			this.dtmFromDate.UserCultureOverride = ((bool)(resources.GetObject("dtmFromDate.UserCultureOverride")));
			this.dtmFromDate.Value = ((object)(resources.GetObject("dtmFromDate.Value")));
			this.dtmFromDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmFromDate.VerticalAlign")));
			this.dtmFromDate.Visible = ((bool)(resources.GetObject("dtmFromDate.Visible")));
			this.dtmFromDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmFromDate.VisibleButtons")));
			this.dtmFromDate.Enter += new System.EventHandler(this.OnEnterControl);
			this.dtmFromDate.Leave += new System.EventHandler(this.OnLeaveControl);
			// 
			// lblEndDayOfMonth
			// 
			this.lblEndDayOfMonth.AccessibleDescription = resources.GetString("lblEndDayOfMonth.AccessibleDescription");
			this.lblEndDayOfMonth.AccessibleName = resources.GetString("lblEndDayOfMonth.AccessibleName");
			this.lblEndDayOfMonth.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblEndDayOfMonth.Anchor")));
			this.lblEndDayOfMonth.AutoSize = ((bool)(resources.GetObject("lblEndDayOfMonth.AutoSize")));
			this.lblEndDayOfMonth.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblEndDayOfMonth.Dock")));
			this.lblEndDayOfMonth.Enabled = ((bool)(resources.GetObject("lblEndDayOfMonth.Enabled")));
			this.lblEndDayOfMonth.Font = ((System.Drawing.Font)(resources.GetObject("lblEndDayOfMonth.Font")));
			this.lblEndDayOfMonth.Image = ((System.Drawing.Image)(resources.GetObject("lblEndDayOfMonth.Image")));
			this.lblEndDayOfMonth.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblEndDayOfMonth.ImageAlign")));
			this.lblEndDayOfMonth.ImageIndex = ((int)(resources.GetObject("lblEndDayOfMonth.ImageIndex")));
			this.lblEndDayOfMonth.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblEndDayOfMonth.ImeMode")));
			this.lblEndDayOfMonth.Location = ((System.Drawing.Point)(resources.GetObject("lblEndDayOfMonth.Location")));
			this.lblEndDayOfMonth.Name = "lblEndDayOfMonth";
			this.lblEndDayOfMonth.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblEndDayOfMonth.RightToLeft")));
			this.lblEndDayOfMonth.Size = ((System.Drawing.Size)(resources.GetObject("lblEndDayOfMonth.Size")));
			this.lblEndDayOfMonth.TabIndex = ((int)(resources.GetObject("lblEndDayOfMonth.TabIndex")));
			this.lblEndDayOfMonth.Text = resources.GetString("lblEndDayOfMonth.Text");
			this.lblEndDayOfMonth.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblEndDayOfMonth.TextAlign")));
			this.lblEndDayOfMonth.Visible = ((bool)(resources.GetObject("lblEndDayOfMonth.Visible")));
			// 
			// lblFirstDayOfMonth
			// 
			this.lblFirstDayOfMonth.AccessibleDescription = resources.GetString("lblFirstDayOfMonth.AccessibleDescription");
			this.lblFirstDayOfMonth.AccessibleName = resources.GetString("lblFirstDayOfMonth.AccessibleName");
			this.lblFirstDayOfMonth.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFirstDayOfMonth.Anchor")));
			this.lblFirstDayOfMonth.AutoSize = ((bool)(resources.GetObject("lblFirstDayOfMonth.AutoSize")));
			this.lblFirstDayOfMonth.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFirstDayOfMonth.Dock")));
			this.lblFirstDayOfMonth.Enabled = ((bool)(resources.GetObject("lblFirstDayOfMonth.Enabled")));
			this.lblFirstDayOfMonth.Font = ((System.Drawing.Font)(resources.GetObject("lblFirstDayOfMonth.Font")));
			this.lblFirstDayOfMonth.Image = ((System.Drawing.Image)(resources.GetObject("lblFirstDayOfMonth.Image")));
			this.lblFirstDayOfMonth.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFirstDayOfMonth.ImageAlign")));
			this.lblFirstDayOfMonth.ImageIndex = ((int)(resources.GetObject("lblFirstDayOfMonth.ImageIndex")));
			this.lblFirstDayOfMonth.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFirstDayOfMonth.ImeMode")));
			this.lblFirstDayOfMonth.Location = ((System.Drawing.Point)(resources.GetObject("lblFirstDayOfMonth.Location")));
			this.lblFirstDayOfMonth.Name = "lblFirstDayOfMonth";
			this.lblFirstDayOfMonth.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFirstDayOfMonth.RightToLeft")));
			this.lblFirstDayOfMonth.Size = ((System.Drawing.Size)(resources.GetObject("lblFirstDayOfMonth.Size")));
			this.lblFirstDayOfMonth.TabIndex = ((int)(resources.GetObject("lblFirstDayOfMonth.TabIndex")));
			this.lblFirstDayOfMonth.Text = resources.GetString("lblFirstDayOfMonth.Text");
			this.lblFirstDayOfMonth.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFirstDayOfMonth.TextAlign")));
			this.lblFirstDayOfMonth.Visible = ((bool)(resources.GetObject("lblFirstDayOfMonth.Visible")));
			// 
			// ManagePeriod
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.lblEndDayOfMonth);
			this.Controls.Add(this.lblFirstDayOfMonth);
			this.Controls.Add(this.dtmToDate);
			this.Controls.Add(this.dtmFromDate);
			this.Controls.Add(this.btnAdd);
			this.Controls.Add(this.btnDelete);
			this.Controls.Add(this.btnEdit);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnSave);
			this.Controls.Add(this.lblStatus);
			this.Controls.Add(this.ckbStatus);
			this.Controls.Add(this.gridPeriod);
			this.Controls.Add(this.lblToDate);
			this.Controls.Add(this.lblFromDate);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.KeyPreview = true;
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "ManagePeriod";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ManagePeriod_KeyDown);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.ManagePeriod_Closing);
			this.Load += new System.EventHandler(this.ManagePeriod_Load);
			((System.ComponentModel.ISupportInitialize)(this.gridPeriod)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDate)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion
				//**************************************************************************              
		///    <Description>
		///       ManagePeriod_Load
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Trada
		///    </Authors>
		///    <History>
		///       Thursday, May 5, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void ManagePeriod_Load(object sender, System.EventArgs e)
		{
			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.WaitCursor;

			#endregion Code Inserted Automatically

			
			const string METHOD_NAME = THIS + ".ManagePeriod_Load()";
			try
			{
				//Set authorization for user
				Security objSecurity = new Security();
				this.Name = THIS;
				if(objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					// You don't have the right to view this item
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW ,MessageBoxIcon.Warning);
					// Code Inserted Automatically
#region Code Inserted Automatically
this.Cursor = Cursors.Default;
#endregion Code Inserted Automatically

					return;
				}
				enumAction = EnumAction.Default;
				dtmFromDate.Enabled = false;
				dtmToDate.Enabled = false;
				ckbStatus.Enabled = false;
				btnSave.Enabled = false;
				dtbGridLayout = FormControlComponents.StoreGridLayout(gridPeriod);
				BindDataToGrid();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.Default;

			#endregion Code Inserted Automatically

			
		}

		//**************************************************************************              
		///    <Description>
		///       btnClose_Click
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Trada
		///    </Authors>
		///    <History>
		///       Thursday, May 5, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void btnClose_Click(object sender, System.EventArgs e)
		{
			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.WaitCursor;

			#endregion Code Inserted Automatically

			
			this.Close();

			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.Default;

			#endregion Code Inserted Automatically

			
		}
		//**************************************************************************              
		///    <Description>
		///       Bind data to grid
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Trada
		///    </Authors>
		///    <History>
		///       Thursday, May 5, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void BindDataToGrid()
		{
			const string METHOD_NAME = THIS + ".BindDataToGrid()";
			try
			{
				ManagePeriodBO boManagePeriod = new ManagePeriodBO();
				dstPeriod = boManagePeriod.ListPeriod();
				gridPeriod.DataSource = dstPeriod.Tables[0];
				gridPeriod.Splits[0].DisplayColumns[Sys_PeriodTable.PERIODID_FLD].Visible = false;
				gridPeriod.Columns[Sys_PeriodTable.FROMDATE_FLD].NumberFormat = DATETIME_FOMART;
				gridPeriod.Splits[0].DisplayColumns[Sys_PeriodTable.FROMDATE_FLD].Locked = true;
				gridPeriod.Columns[Sys_PeriodTable.TODATE_FLD].NumberFormat = DATETIME_FOMART;
				gridPeriod.Splits[0].DisplayColumns[Sys_PeriodTable.TODATE_FLD].Locked = true;
				gridPeriod.Splits[0].DisplayColumns[Sys_PeriodTable.ACTIVATE_FLD].Locked = true;
				gridPeriod.Columns[Sys_PeriodTable.ACTIVATE_FLD].ValueItems.Presentation = PresentationEnum.CheckBox;
				//Align center caption of all column
				for (int i = 0; i < gridPeriod.Splits[0].DisplayColumns.Count; i++)
				{
					gridPeriod.Splits[0].DisplayColumns[i].HeadingStyle.HorizontalAlignment = AlignHorzEnum.Center;
				}
				FormControlComponents.RestoreGridLayout(gridPeriod, dtbGridLayout);
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
				}
			}
		}
		//**************************************************************************              
		///    <Description>
		///       btnEdit_Click
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Trada
		///    </Authors>
		///    <History>
		///       Thursday, May 5, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void btnEdit_Click(object sender, System.EventArgs e)
		{
			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.WaitCursor;

			#endregion Code Inserted Automatically

			
			const string METHOD_NAME = THIS + ".btnEdit_Click()";
			try
			{
				//Edit mode
				int intCountRow =0;
				for (int i =0; i < gridPeriod.Splits[0].Rows.Count; i++)
				{
					if (gridPeriod[i, Sys_PeriodTable.FROMDATE_FLD].ToString() != string.Empty)
					{
						intCountRow++;
					}
				}
				if (intCountRow ==0)
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_PO_APPROVE_NO_DATA_IN_GRID);
					gridPeriod.Row = 0;
					gridPeriod.Col = gridPeriod.Splits[0].DisplayColumns.IndexOf(gridPeriod.Splits[0].DisplayColumns[Sys_PeriodTable.FROMDATE_FLD]);
					gridPeriod.Focus();
					// Code Inserted Automatically
					#region Code Inserted Automatically
this.Cursor = Cursors.Default;
#endregion Code Inserted Automatically

					return;
				}
				//added by duongna (21-Sep-2005)
				if (gridPeriod.VisibleRows == 0)
				{
					// Code Inserted Automatically
					#region Code Inserted Automatically
this.Cursor = Cursors.Default;
#endregion Code Inserted Automatically

					return;
				}
				
				btnAdd.Enabled = false;
				enumAction = EnumAction.Edit;
				int pintSelectedRow = gridPeriod.Row;
				dtmFromDate.Enabled = true;
				dtmToDate.Enabled = true;
				btnAdd.Enabled = false;
				btnSave.Enabled = true;
				btnDelete.Enabled = false;
				ckbStatus.Enabled = true;

				dtmFromDate.Value = DateTime.Parse(gridPeriod[pintSelectedRow, Sys_PeriodTable.FROMDATE_FLD].ToString());
				dtmToDate.Value = DateTime.Parse(gridPeriod[pintSelectedRow, Sys_PeriodTable.TODATE_FLD].ToString());
				ckbStatus.Checked = (bool)gridPeriod[pintSelectedRow, Sys_PeriodTable.ACTIVATE_FLD];
				btnEdit.Enabled = false;

				dtmFromDate.Focus();
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
				}
			}				
			
				

			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.Default;

			#endregion Code Inserted Automatically

			
		}
		//**************************************************************************              
		///    <Description>
		///       btnAdd_Click
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Trada
		///    </Authors>
		///    <History>
		///       Thursday, May 5, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void btnAdd_Click(object sender, System.EventArgs e)
		{
			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.WaitCursor;

			#endregion Code Inserted Automatically

			
			const string METHOD_NAME = THIS + ".btnAdd_Click()";
			try
			{
				dtmFromDate.Enabled = true;
				dtmToDate.Enabled = true;
				ckbStatus.Enabled = true;
				btnSave.Enabled = true;
				btnDelete.Enabled = false;
				btnAdd.Enabled = false;
				btnEdit.Enabled = false;
				//Add mode	
			
				dtmFromDate.Focus();

				enumAction = EnumAction.Add;
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.Default;

			#endregion Code Inserted Automatically

			
		}
		//**************************************************************************              
		///    <Description>
		///       btnSave_Click
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Trada
		///    </Authors>
		///    <History>
		///       Thursday, May 5, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void btnSave_Click(object sender, System.EventArgs e)
		{
			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.WaitCursor;

			#endregion Code Inserted Automatically

			
			const string METHOD_NAME = THIS + ".btnSave_Click()";
			try
			{
				blnSaveOK = false;
				if (FormControlComponents.CheckMandatory(dtmFromDate))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					dtmFromDate.Focus();
					dtmFromDate.Select();
					// Code Inserted Automatically
					#region Code Inserted Automatically
					this.Cursor = Cursors.Default;
					#endregion Code Inserted Automatically

					return;
				}
				if (FormControlComponents.CheckMandatory(dtmToDate))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					dtmToDate.Focus();
					dtmToDate.Select();
					// Code Inserted Automatically
					#region Code Inserted Automatically
					this.Cursor = Cursors.Default;
					#endregion Code Inserted Automatically

					return;
				}

				//Check from date
				if(dtmFromDate.ValueIsDbNull  || dtmFromDate.Text.Trim() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Exclamation);
					dtmFromDate.Focus();				
					return;
				}				
			
				if(((DateTime)dtmFromDate.Value).Day != 1)
				{
					string[] arrMessage = new string[2];
					arrMessage[0] = lblFirstDayOfMonth.Text + " (1)";
					arrMessage[1] = lblFromDate.Text;

					PCSMessageBox.Show(ErrorCode.MESSAGE_RELATION_REQUIRE, MessageBoxIcon.Exclamation, arrMessage);
					dtmFromDate.Focus();				
					return;
				}

				//Check to date
				if (dtmToDate.ValueIsDbNull || dtmToDate.Text.Trim() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Exclamation);
					dtmToDate.Focus();				
					return;
				}
			
				if(((DateTime)dtmToDate.Value).Date != ((DateTime)dtmFromDate.Value).Date.AddMonths(1).AddDays(-1))
				{
					string[] arrMessage = new string[2];
					arrMessage[0] = lblEndDayOfMonth.Text + " (" + DateTime.DaysInMonth(((DateTime)dtmToDate.Value).Year, ((DateTime)dtmToDate.Value).Month) + ")";
					arrMessage[1] = lblToDate.Text;

					PCSMessageBox.Show(ErrorCode.MESSAGE_RELATION_REQUIRE, MessageBoxIcon.Exclamation, arrMessage);
					dtmToDate.Focus();				
					return;
				}

				//Check if date is invalid
				if(DateTime.Parse(dtmFromDate.Value.ToString()) > DateTime.Parse(dtmToDate.Value.ToString()))
				{
					string[] arrMessage = new string[2];
					arrMessage[0] = lblToDate.Text;
					arrMessage[1] = lblFromDate.Text;

					PCSMessageBox.Show(ErrorCode.MESSAGE_GREATER_THAN, MessageBoxIcon.Exclamation, arrMessage);
					dtmToDate.Focus();				
					return;
				}
				ManagePeriodBO boPeriod = new ManagePeriodBO();
				voPeriod.Activate = ckbStatus.Checked;
				voPeriod.FromDate = Convert.ToDateTime(dtmFromDate.Value);
				voPeriod.ToDate = Convert.ToDateTime(dtmToDate.Value);
				if (enumAction == EnumAction.Edit)
				{
					int pintSelectedRow = gridPeriod.Row;
					voPeriod.PeriodID = int.Parse(gridPeriod[pintSelectedRow, Sys_PeriodTable.PERIODID_FLD].ToString());
				}
				if(boPeriod.IsPeriodOverlap(voPeriod))
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_DATE_IS_OVERLAP, MessageBoxIcon.Exclamation);					
					dtmFromDate.Focus();				
					return;
				}
				switch (enumAction)
				{
					case EnumAction.Add:
						voPeriod.PeriodID = boPeriod.AddAndReturnID(voPeriod);
						break;
					case EnumAction.Edit:
						boPeriod.Update(voPeriod);
						break;
				}
				
				enumAction = EnumAction.Default;
				BindDataToGrid();
				dtmFromDate.Enabled = false;
				dtmToDate.Enabled = false;
				ckbStatus.Enabled = false;
				btnAdd.Enabled = true;
				btnEdit.Enabled = true;
				btnSave.Enabled = false;
				btnDelete.Enabled = true;

				dtmFromDate.Value = DBNull.Value;
				dtmToDate.Value = DBNull.Value;
				ckbStatus.Checked = false;
				PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
				}
			}
			finally
			{
				this.Cursor = Cursors.Default;
			}
		}
		//**************************************************************************              
		///    <Description>
		///      btnDelete_Click
		///    </Description>
		///    <Inputs>
		///    fromDate, toDate
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       bool
		///    </Returns>
		///    <Authors>
		///       Trada
		///    </Authors>
		///    <History>
		///       Thursday, May 5, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void btnDelete_Click(object sender, System.EventArgs e)
		{
			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.WaitCursor;

			#endregion Code Inserted Automatically

			
			const string METHOD_NAME = THIS + ".btnDelete_Click()";
			try
			{
				int intCountRow =0;
				for (int i =0; i < gridPeriod.Splits[0].Rows.Count; i++)
				{
					if (gridPeriod[i, Sys_PeriodTable.FROMDATE_FLD].ToString() != string.Empty)
					{
						intCountRow++;
					}
				}
				if (intCountRow ==0)
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_PO_APPROVE_NO_DATA_IN_GRID);
					gridPeriod.Row = 0;
					gridPeriod.Col = gridPeriod.Splits[0].DisplayColumns.IndexOf(gridPeriod.Splits[0].DisplayColumns[Sys_PeriodTable.FROMDATE_FLD]);
					gridPeriod.Focus();
					// Code Inserted Automatically
#region Code Inserted Automatically
this.Cursor = Cursors.Default;
#endregion Code Inserted Automatically

					return;
				}
				int pintSelectedRow = gridPeriod.Row;
				int pintPeriodID = int.Parse(gridPeriod[pintSelectedRow, Sys_PeriodTable.PERIODID_FLD].ToString());
				ManagePeriodBO boManagePeriod = new ManagePeriodBO();
				if ((bool)gridPeriod[pintSelectedRow, Sys_PeriodTable.ACTIVATE_FLD])
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_MP_CAN_NOT_DEL_ROW, MessageBoxIcon.Error);
				}
				else
				{
					boManagePeriod.Delete(pintPeriodID);
					BindDataToGrid();
				}
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
				}
			}

			// Code Inserted Automatically

			#region Code Inserted Automatically

			this.Cursor = Cursors.Default;

			#endregion Code Inserted Automatically

			
		}

		//**************************************************************************              
		///    <Description>
		///      ManagePeriod_Closing
		///    </Description>
		///    <Inputs>
		///    fromDate, toDate
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       bool
		///    </Returns>
		///    <Authors>
		///       Trada
		///    </Authors>
		///    <History>
		///       Thursday, May 5, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void ManagePeriod_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".ManagePeriod_Closing()";
			try
			{
				//Add mode
				if (enumAction == EnumAction.Add)
				{
					if ((FormControlComponents.CheckMandatory(dtmFromDate))&&(FormControlComponents.CheckMandatory(dtmToDate)))
					{
						return;
					}
					else
					{		
						System.Windows.Forms.DialogResult dlgResult = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_STORE_INTO_DATABASE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
						switch (dlgResult)
						{
							case DialogResult.Yes:
								btnSave_Click(null,null);
								if (blnSaveOK)
								{
									e.Cancel = false;
								}
								else
								{
									e.Cancel = true;
								}
								break;
							case DialogResult.No:
								e.Cancel = false;
								break;
							case DialogResult.Cancel:
								e.Cancel = true;
								break;
						}
					}
				}
				//Edit Mode
				if (enumAction == EnumAction.Edit)
				{
					if ((FormControlComponents.CheckMandatory(dtmFromDate))&&(FormControlComponents.CheckMandatory(dtmToDate)))
					{
						return;
					}
					else
					{	
						System.Windows.Forms.DialogResult dlgResult = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_STORE_INTO_DATABASE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
						switch (dlgResult)
						{
							case DialogResult.Yes:
								btnSave_Click(null,null);
								if (blnSaveOK)
								{
									e.Cancel = false;
								}
								else
								{
									e.Cancel = true;
								}
								break;
							case DialogResult.No:
								e.Cancel = false;
								break;
							case DialogResult.Cancel:
								e.Cancel = true;
								break;
						}
					}
				}
			
				
			}	
						
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				e.Cancel = true;
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				e.Cancel = true;

			}
		
		}

		/// <summary>
		/// ManagePeriod_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, September 30 2005</date>
		private void ManagePeriod_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				this.Close();
			}
		}
		/// <summary>
		/// OnEnterControl
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, September 30 2005</date>
		private void OnEnterControl(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".OnEnterControl()";
			try
			{
				FormControlComponents.OnEnterControl(sender, e);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// OnLeaveControl
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, September 1 2005</date>
		private void OnLeaveControl(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".OnLeaveControl()";
			try
			{
				FormControlComponents.OnLeaveControl(sender, e);
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
	}
}
